package com.cl.mapper;

import com.cl.pojo.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserInfoMapper {
    /**
     * 插入一个uid
     * @param uid
     * @return
     */
    int insertUid(@Param("uid")int uid);

    /**
     * 查询全部用户信息
     * @return
     */
    List<Map<String,Object>> queryAllUserInfo();


    /**
     * 根据uid查询个人信息
     * @param uid
     * @return
     */
    List<Map<String,Object>> queryByUid(@Param("uid")int uid);

    /**
     *
     * @param userInfo
     * @return
     */
    int updateInfo(UserInfo userInfo);

}
